home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / DOCZ16.ZIP;1 / DOCZ.LIF / MACROS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-24  |  1.3 KB  |  44 lines

  1. #ifdef VCSTR
  2.  static char MACROSH[]="@(#) macros.h 1.0 91/01/13 16:09:26";  /*sccsid*/
  3. #endif
  4. #ifdef DOCUMENTATION
  5. /******************************* DOCZ Header *********************************
  6. .MODULE                hibyte
  7. .LIBRARY             csub
  8. .TYPE                 macro
  9. .APPLICATION        conversion
  10. .SYSTEM                msdos-s
  11. .SYSTEM                msdos-l
  12. .SYSTEM                vms
  13. .SYSTEM                unix
  14. .AUTHOR                Software Toolz
  15. .LANGUAGE            C
  16. .DESCRIPTION
  17.     Extract the high byte of a short
  18. .ARGUMENTS            
  19.     HIBYTE(u)
  20.         unsigned short u;     /* (r) the shortword to extract from */
  21. .NARRATIVE
  22.     This macro returns the high-byte of an unsigned short (16 bits) as
  23.     a byte (8 bits).
  24. .RETURNS
  25.     The high byte of "u" as a byte.
  26. .INCLUDES
  27.     csub.h
  28.     csubmac.h
  29. .SEE_ALSO            
  30.     LOBYTE()
  31. .NOTICE
  32.     Copyright 1989 Software Toolz, Inc. - Atlanta, Georgia
  33.  
  34.     All rights reserved worldwide.  This program may not be reproduced,
  35.     transmitted, transcribed, stored in a retrieval system or translated in 
  36.     any human or computer language, in any form without the express written 
  37.     permission of Software Toolz, Inc.
  38. .ENDOC                    END DOCUMENTATION
  39. *****************************************************************************/
  40. #endif      /* DOCUMENTATION */
  41. #ifndef    HIBYTE
  42. #define    HIBYTE(u)        (((u)>>8)&0x00FF)         /* High byte of short */
  43. #endif
  44.